home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo2.zoo / demo / ex / ex_tune.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-31  |  4.2 KB  |  147 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)ex_tune.h    7.11 (Berkeley) 3/9/87
  7.  *    @(#)ex_tune.h    1.2 (Bellcore)    87/04/24
  8.  */
  9.  
  10. /*
  11.  * Definitions of editor parameters and limits
  12.  */
  13.  
  14. /*
  15.  * Pathnames.
  16.  *
  17.  * Only exstrings is looked at "+4", i.e. if you give
  18.  * "/usr/lib/..." here, "/lib" will be tried only for strings.
  19.  */
  20. #define libpath(file) "/usr/lib/file"
  21. #define loclibpath(file) "/usr/local/lib/file"
  22. #define binpath(file) "/usr/ucb/file"
  23. #define usrpath(file) "/usr/file"
  24. #ifndef    vms
  25. #define E_TERMCAP    "/etc/termcap"
  26. #else
  27. #define E_TERMCAP    "etc:termcap."
  28. #endif
  29. #define B_CSH        "/bin/csh"
  30. #define    EXRECOVER    libpath(ex3.7recover)
  31. #define    EXPRESERVE    libpath(ex3.7preserve)
  32. #ifndef VMUNIX
  33. #ifndef    vms
  34. #define    EXSTRINGS    libpath(ex3.7strings)
  35. #endif
  36. #endif
  37.  
  38. /*
  39.  * If your system believes that tabs expand to a width other than
  40.  * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
  41.  */
  42. #ifndef TABS
  43. #define    TABS    8
  44. #endif
  45.  
  46. /*
  47.  * Maximums
  48.  *
  49.  * The definition of LBSIZE should be the same as BUFSIZ (512 usually).
  50.  * Most other definitions are quite generous.
  51.  */
  52. /* FNSIZE is also defined in expreserve.c */
  53. #define    FNSIZE        128        /* File name size */
  54. #ifdef VMUNIX
  55. #define    LBSIZE        1024
  56. #define    ESIZE        512
  57. #define CRSIZE        1024
  58. #else
  59. #ifdef u370
  60. #define LBSIZE        4096
  61. #define ESIZE        512
  62. #define CRSIZE        4096
  63. #else
  64. #ifdef vms
  65. #define LBSIZE        1024
  66. #define    ESIZE        512
  67. #define    CRSIZE        1024
  68. #else
  69. #define    LBSIZE        512        /* Line length */
  70. #define    ESIZE        128        /* Size of compiled re */
  71. #define CRSIZE        512
  72. #endif
  73. #endif
  74. #endif
  75. #define    RHSSIZE        256        /* Size of rhs of substitute */
  76. #define    NBRA        9        /* Number of re \( \) pairs */
  77. #define    TAGSIZE        128        /* Tag length */
  78. #define    ONMSZ        64        /* Option name size */
  79. #define    GBSIZE        256        /* Buffer size */
  80. #define    UXBSIZE        128        /* Unix command buffer size */
  81. #define    VBSIZE        128        /* Partial line max size in visual */
  82. /* LBLKS is also defined in expreserve.c */
  83. #ifndef VMUNIX
  84. #define    LBLKS        125        /* Line pointer blocks in temp file */
  85. #define    HBLKS        1        /* struct header fits in BUFSIZ*HBLKS */
  86. #else
  87. #define    LBLKS        900
  88. #define    HBLKS        2
  89. #endif
  90. #define    MAXDIRT        12        /* Max dirtcnt before sync tfile */
  91. #define TCBUFSIZE    2048        /* Max entry size in termcap, see
  92.                        also termlib and termcap */
  93.  
  94. /*
  95.  * Except on VMUNIX, these are a ridiculously small due to the
  96.  * lousy arglist processing implementation which fixes core
  97.  * proportional to them.  Argv (and hence NARGS) is really unnecessary,
  98.  * and argument character space not needed except when
  99.  * arguments exist.  Argument lists should be saved before the "zero"
  100.  * of the incore line information and could then
  101.  * be reasonably large.
  102.  */
  103. #ifndef    vms
  104. #undef NCARGS
  105. #endif
  106. #ifndef VMUNIX
  107. #define    NARGS    100        /* Maximum number of names in "next" */
  108. #define    NCARGS    LBSIZE        /* Maximum arglist chars in "next" */
  109. #else
  110. #define    NCARGS    5120
  111. #define    NARGS    (NCARGS/6)
  112. #endif
  113.  
  114. /*
  115.  * Note: because the routine "alloca" is not portable, TUBESIZE
  116.  * bytes are allocated on the stack each time you go into visual
  117.  * and then never freed by the system.  Thus if you have no terminals
  118.  * which are larger than 24 * 80 you may well want to make TUBESIZE
  119.  * smaller.  TUBECOLS should stay at 160 since this defines the maximum
  120.  * length of opening on hardcopies and allows two lines of open on
  121.  * terminals like adm3's (glass tty's) where it switches to pseudo
  122.  * hardcopy mode when a line gets longer than 80 characters.
  123.  */
  124. #ifndef VMUNIX
  125. #define    TUBELINES    60    /* Number of screen lines for visual */
  126. #define    TUBECOLS    160    /* Number of screen columns for visual */
  127. #define    TUBESIZE    5000    /* Maximum screen size for visual */
  128. #else
  129. #define    TUBELINES    200
  130. #define    TUBECOLS    200
  131. #define    TUBESIZE    (TUBELINES * TUBECOLS)
  132. #endif
  133.  
  134. /*
  135.  * Output column (and line) are set to this value on cursor addressible
  136.  * terminals when we lose track of the cursor to force cursor
  137.  * addressing to occur.
  138.  */
  139. #define    UKCOL        -20    /* Prototype unknown column */
  140.  
  141. /*
  142.  * Attention is the interrupt character (normally 0177 -- delete).
  143.  * Quit is the quit signal (normally FS -- control-\) and quits open/visual.
  144.  */
  145. #define    ATTN    (-2)    /* mjm: (char) ??  */
  146. #define    QUIT    ('\\' & 037)
  147.